createdatabaseconfiguration - Ant Task |
Description
createdatabaseconfiguration
Ant task creates a database configuration based on the parameters provided.
Sample Usage
- The following XML code describes the procedure to create a database configuration using MySQL along with JDBC.
<createdatabaseconfiguration description="northwindConfiguration" ldapRoot="cn=cordys,cn=mybop,o=myorg.com" name="northwindConf" organization="system" override="false" server="cin400333l" testConnectivity="true"> <driver connectionString="jdbc:mysql://localhost:3307/northwind" dbConnectorType="JDBC" dbVendor="MySQL 5.0" jdbcDriverClass="com.mysql.jdbc.Driver" jdbcDriverXAClass="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource"/> <database createDatabase="true" dbPassword="userpasswd" dbUserName="user" dbaName="root" dbaPassword="rootpasswd" defaultDatabaseName="northwind"/> </createdatabaseconfiguration>
- The following XML code describes the procedure to create database configuration using SQL Server along with OLEDB.
<createdatabaseconfiguration description="MyTestConfiguration" ldapRoot="cn=cordys,cn=mybop,o=myorg.com" name="MyTestConfig" organization="system" override="false" server="cin400333l" testConnectivity="true"> <driver dbConnectorType="OLEDB" dbServerName="cin400333l\SQLEXPRESS" dbVendor="MS SQL Server 2005" provider="SQLNCLI"/> <database createDatabase="false" dbPassword="userpassword" dbUserName="username" defaultDatabaseName="testDB"/> </createdatabaseconfiguration>
Parameters
Attribute |
Description |
Type |
Required |
---|---|---|---|
name |
Name of the database configuration. |
String |
Yes |
description |
Description of the database configuration. If the value is empty, name will be taken as description. |
String |
No |
server |
Name of the system where Process Platform is installed. |
String |
Yes |
ldapRoot |
LDAP Root DN of Process Platform instance. |
String |
Yes |
organization |
Name of the organization where database configuration needs to be created. |
String |
Yes |
testConnectivity |
|
boolean |
No |
override |
Flag to update the database configuration if it is already present. Default value is false |
boolean |
No |
failOnError |
This flag aborts the build when an exception occurs in the task. Default value is true |
boolean |
No |
Parameters for database and driver
It has two nested elements called 'database' and 'driver'. These attributes are explained in the following table:
Attributes of database element
Attribute |
Description |
Type |
Required |
---|---|---|---|
defaultDatabaseName |
Refers to the name of the database. For Oracle, the attribute is the Schema name. |
String |
Yes |
dbUserName |
Refers to the database user ID/ user name. |
String |
Yes |
dbPassword |
Refers to the database user password. |
String |
Yes |
createDatabase |
Boolean value indicates whether new database should be created while creating database configuration. Default value is false |
boolean |
No |
dbaName |
Database administrator name to create new database.This property is needed only if createDatabase is set to true. |
String |
No |
dbaPassword |
Refers to the Database administrator password to create a new database. This property is needed only if createDatabase is set to true. |
String |
No |
createTablespace |
This boolean flag is specific to oracle and createDatabase = true. This should be set to true if tablespace is created while creating database, otherwise set to false. Default value is false |
boolean |
No |
tablespace |
Refers to the tablespace name. This field is needed only if createDatabase = true, createTablespace = true and dbVendor = Oracle. |
String |
No |
tablespacePath |
Refers to the tablespace path. This field is needed only if createDatabase = true, createTablespace = true and dbVendor = Oracle. |
String |
No |
Attributes of driver element
If the driver is OLEDB
Attribute |
Description |
Type |
Required |
---|---|---|---|
dbVendor |
Name of the database vendor. Currently supported values are:
|
String |
Yes |
dbConnectorType |
Refers to the type of the connector used. Possible value is OLEDB. |
String |
Yes |
provider |
Name of the Database provider. If it is empty, the default values will be:
|
String |
No. |
dbServerName |
Refers to the DB Server String.
|
String |
Yes |
If the driver is JDBC
Attribute |
Description |
Type |
Required |
---|---|---|---|
dbVendor |
Name of the database vendor. Currently supported values are:
|
String |
Yes |
dbConnectorType |
Type of the connector used. Possible value is JDBC. |
String |
Yes |
jdbcDriverClass |
Qualified name of the JDBC driver class. If it is empty, the default values will be:
|
String |
No |
jdbcDriverXAClass |
Qualified name of the JDBC driver XA class. If it is empty, the default values will be:
|
String |
No |
connectionString |
|
String |
Yes |
![]() |
Note:
|